package cn.com.citydo.base.exception;

/**
 * @author jh
 * @date 2019/5/21 11:28
 * @Description: 异常类型枚举
 */
public enum ErrorCodeEnum {

    /*———————————————————— 系统异常 ————————————————————*/
    SYSTEM_SUCCESS(200, "成功"),
    SYSTEM_SERVER_ERROR(500, "系统异常"),
    SYSTEM_PARAMS_ERROR(10001, "参数异常"),
    SYSTEM_PARAM_INCOMPLETE(10002, "参数不完整"),
    SYSTEM_NOT_FOUND(10003, "该项不存在或已删除"),
    ;
    private int code;
    private String msg;

    ErrorCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

}
